from django.http import HttpResponse
from django.shortcuts import render
from django.views import View


# Create your views here.
class IndexView(View):
    """首页"""
    def get(self,request):
        return render(request, "news/index.html")


class SearchView(View):
    """搜索页"""
    def get(self,request):
        return render(request,"news/search.html")


class DetailView(View):
    """新闻详情页"""
    def get(self,request):
        return render(request,"news/news_detail.html")
